﻿<html><head></head>
<body>

<div><br></div><div><div><font class="Apple-style-span" face="Consolas"><br></font></div><div><font class="Apple-style-span" face="Consolas"><div><b>使用变量来存储布尔值</b></div><div><div>&nbsp; &nbsp; &nbsp; &nbsp;</div><div>&nbsp; &nbsp; <font class="Apple-style-span" color="#ff6600">var inStock = true;</font></div><div><font class="Apple-style-span" color="#ff6600">&nbsp; &nbsp; var elStock = document.getElementById('stock');</font></div><div><font class="Apple-style-span" color="#ff6600">&nbsp; &nbsp; elStock.className = inStock;</font></div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div>&nbsp; &nbsp;&nbsp;</div></font></div></div><script type="text/javascript" language="javascript" src="jquery.js"></script><script type="text/javascript" language="javascript" src="itemlink.js"></script></body></html>